import ajax from '../http';

export const updateBundleApi = (params) => {
  return ajax.put(`/bundle/${params.id}`,
    JSON.stringify(params),
    {headers: {'Content-Type': 'application/json'}}
  )
};

export const createBundleApi = (params) => {
  console.log(JSON.stringify(params))
  return ajax.post('/bundle',
    JSON.stringify(params),
    {
      headers: {'Content-Type': 'application/json'}
    }
  )
};
